<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:68:"E:\sources\member\v2\public/../application/index\view\user\edit.html";i:1548687642;s:61:"E:\sources\member\v2\application\index\view\public\title.html";i:1548334499;s:62:"E:\sources\member\v2\application\index\view\public\header.html";i:1548411481;s:63:"E:\sources\member\v2\application\index\view\public\leftNav.html";i:1548771179;s:60:"E:\sources\member\v2\application\index\view\public\foot.html";i:1548334499;}*/ ?>
<!doctype html>
<html>

<head>
  <!-- css文件 -->
  <meta charset="utf-8">
<title>后台</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="/static/admin/assets/i/favicon.png">
<link rel="apple-touch-icon-precomposed" href="/static/admin/assets/i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI" />
<link rel="stylesheet" href="/static/admin/assets/css/amazeui.min.css" />
<link rel="stylesheet" href="/static/admin/assets/css/admin.css">
<link rel="stylesheet" href="/static/admin/assets/css/app.css">
<link rel="stylesheet" href="/static/admin/assets/css/amazeui.switch.css">
<script src="/static/admin/assets/js/echarts.min.js"></script>
<!-- jquery -->
<script src="/static/common/jquery.min.js"></script>
<!-- layer 弹窗插件-->
<script src="/static/common/layer/layer.js"></script>
</head>

<body data-type="generalComponents">
  <!-- 头部 -->
  <header class="am-topbar am-topbar-inverse admin-header">
  <div class="am-topbar-brand">
    <a href="javascript:;" class="tpl-logo">
      <img src="/static/admin/assets/img/logo.png" alt="">
    </a>
  </div>
  <div class="am-icon-list tpl-header-nav-hover-ico am-fl am-margin-right">
  </div>
  <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span
      class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>
  <div class="am-collapse am-topbar-collapse" id="topbar-collapse">
    <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list tpl-header-list">
      <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen" class="tpl-header-list-link"><span
            class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>
      <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
        <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
          <span class="tpl-header-list-user-nick"><?php echo \think\Request::instance()->session('user'); ?></span><span class="tpl-header-list-user-ico"> <img src="/static/admin/assets/img/user01.png"></span>
        </a>
        <ul class="am-dropdown-content">
          <li><a href="<?php echo url('admin/edit',['id'=>\think\Request::instance()->session('id')]); ?>"><span class="am-icon-bell-o"></span> 资料</a></li>
          <li><a href="<?php echo url('Admin/logout'); ?>"><span class="am-icon-power-off"></span> 退出</a></li>
        </ul>
      </li>
      <li><a href="<?php echo url('Admin/logout'); ?>"  class="tpl-header-list-link"><span class="am-icon-sign-out tpl-header-list-ico-out-size"></span></a></li>
    </ul>
  </div>
</header>

  <div class="tpl-page-container tpl-page-header-fixed">
    <!-- 左侧导航 -->
    
  <div class="tpl-left-nav tpl-left-nav-hover">
    <div class="tpl-left-nav-title">
      会员管理系统V2版
    </div>
    <div class="tpl-left-nav-list">
      <ul class="tpl-left-nav-menu">
        <li class="tpl-left-nav-item">
          <a href="<?php echo url('index/index'); ?>" class="nav-link active">
            <i class="am-icon-home"></i>
            <span>首页</span>
          </a>
        </li>
        <li class="tpl-left-nav-item">
          <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
            <i class="am-icon-user"></i>
            <span>管理员</span>
            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right tpl-left-nav-more-ico-rotate"></i>
          </a>
          <ul class="tpl-left-nav-sub-menu"  style="display: block;">
            <li>
              <a href="<?php echo url('admin/lst'); ?>">
                <i class="am-icon-angle-right"></i>
                <span>管理员列表</span>
                <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
              </a>
            </li>
          </ul>
        </li>
        <li class="tpl-left-nav-item">
          <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
            <i class="am-icon-group"></i>
            <span>会员管理</span>
            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right tpl-left-nav-more-ico-rotate"></i>
          </a>
          <ul class="tpl-left-nav-sub-menu"  style="display: block;">
            <li>
              <a href="<?php echo url('user/add'); ?>">
                <i class="am-icon-angle-right"></i>
                <span>会员添加</span>
              </a>
              <a href="<?php echo url('user/lst'); ?>">
                <i class="am-icon-angle-right"></i>
                <span>会员列表</span>
              </a>
              <a href="<?php echo url('user/log'); ?>">
                <i class="am-icon-angle-right"></i>
                <span>会员日志</span>
                <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
              </a>
            </li>
          </ul>
        </li>
      </ul>
    </div>
  </div>
    <div class="tpl-content-wrapper">
      <ol class="am-breadcrumb">
        <li><a href="#" class="am-icon-home">首页</a></li>
        <li><a href="#">会员管理</a></li>
        <li class="am-active">会员修改</li>
      </ol>
      <div class="tpl-portlet-components">
        <div class="tpl-block ">
          <div class="am-g tpl-amazeui-form">
            <div class="am-u-sm-12 am-u-md-9">
              <form class="am-form am-form-horizontal" id="form_ajax" onsubmit="return false">
                <div class="am-form-group">
                  <label for="user-mima" class="am-u-sm-3 am-form-label">编号 / id</label>
                  <div class="am-u-sm-9">
                      <input type="text" name="id" value="<?php echo $user['id']; ?>" readonly/>
                  </div>
                </div>
                <div class="am-form-group">
                  <label for="user-mima" class="am-u-sm-3 am-form-label">姓名 / name</label>
                  <div class="am-u-sm-9">
                    <input type="text" name="name"  id="user-mima" value="<?php echo $user['name']; ?>">
                  </div>
                </div>
                <div class="am-form-group">
                  <label for="user-mima" class="am-u-sm-3 am-form-label">电话 / tel</label>
                  <div class="am-u-sm-9">
                    <input type="text" name="tel"  id="user-mima" value="<?php echo $user['tel']; ?>">
                  </div>
                </div>
                <div class="am-form-group">
                  <label for="user-mime" class="am-u-sm-3 am-form-label">余额 / balance</label>
                  <div class="am-u-sm-9">
                    <input type="text" name="balance" id="user-mime" value="<?php echo $user['balance']; ?>">
                  </div>
                </div>
                <div class="am-form-group">
                  <div class="am-u-sm-9 am-u-sm-push-3">
                    <button type="submit" id="submitFrom" class="am-btn am-btn-primary">保存修改</button>
                  </div>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-- js -->
  <script src="/static/admin/assets/js/amazeui.min.js"></script>
<script src="/static/admin/assets/js/iscroll.js"></script>
<script src="/static/admin/assets/js/app.js"></script>
<script src="/static/admin/assets/js/amazeui.switch.js"></script>
<!--后台admin js-->
<script src="/static/admin/admin.js" type="text/javascript"></script>
  <script>
    $('#submitFrom').click(function(){
      var formData = $('#form_ajax').serialize();
      $.ajax({
        url:"<?php echo url('User/edit'); ?>",
        type:'POST',
        data:formData,
        success:function(data){
          if(data.code == 1){
            layer.alert(data.msg, {icon: 6});
          }else{
            layer.alert(data.msg, {icon: 5});
          }
        }
      })
    })
  </script>
</body>
</html>